/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.srcptit.trainning.hanhpt.btvn1;

import java.util.Scanner;

/**
 *
 * @author Administrator
 */
public class Bai3M1 
{
    public static void main(String[] args) 
    {
     Scanner sc=new Scanner (System.in);
        System.out.println("nhap vao so nguyen n");
        int n=sc.nextInt();
        int i=2;
        while(n!=1)
        {
            if(n%i==0)
            {
                System.out.print(i);
                n=n/i;
                if(n!=1) System.out.print("*");
            }
            else i++;
         }
     }
}
